package com.aifund.app.service.impl;

import com.aifund.app.service.TacticsTransactionCurrencyService;
import com.aifund.common.dao.TacticsTransactionCurrencyDao;
import com.aifund.common.entity.TacticsTransactionCurrency;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TacticsTransactionCurrencyServiceImpl implements TacticsTransactionCurrencyService {
    @Autowired
    TacticsTransactionCurrencyDao transactionCurrencyDao;

    @Override
    public TacticsTransactionCurrency save(TacticsTransactionCurrency currency){
       return transactionCurrencyDao.save(currency);
    }

    @Override
    public List<TacticsTransactionCurrency> getAllByTacticsId(Long tacticsId) {
        return transactionCurrencyDao.getAllByTacticsId(tacticsId);
    }

}
